﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using Orchard.ContentManagement;
using Orchard.ContentManagement.Records;

namespace Contrib.BSCarouselSlide.Models
{
    public class BSCarouselSlidePart : ContentPart<BSCarouselSlidePartRecord>
    {
        [Required]
        public string CarouselKey
        {
            get { return Record.CarouselKey; }
            set { Record.CarouselKey = value; }
        }

        [Required]
        public int Priority
        {
            get { return Record.Priority; }
            set { Record.Priority = value; }
        }

        public bool HasText
        {
            get { return Record.HasText; }
            set { Record.HasText = value; }
        }
        [StringLength(60)]
        public string TextClass
        {
            get { return Record.TextClass; }
            set { Record.TextClass = value; }
        }
        public bool HasImage
        {
            get { return Record.HasImage; }
            set { Record.HasImage = value; }
        }
        [StringLength(60)]
        public string ImageClass
        {
            get { return Record.ImageClass; }
            set { Record.ImageClass = value; }
        }
    }
}